


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/js/util.js"></script>
		<script type='text/javascript' src='<%=path%>/frame/orgSelect/js/ajaxInitSelect.js'></script>
<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
</head>
<body>
<html:form styleId="yfAppointTaskForm" action="commandFlowYfAppointTask.do?method=commandFlowYfAppointTask" onsubmit="return save();">
	<html:hidden styleId="id" property="id" value="${yfAppointTask.id}" />
<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">研发辅助 &gt; 任务指派 &gt; 执行任务</td>
		    </tr>
       </table>
	
	   
	    <table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	           <tr>
		       <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">任务指派信息</td>
		    </tr>
        <tr class="bgcolor">
	   <td width="18%" align="right" class="zi13">被指派人：</td>
	   <td width="32%"  align="left" class="pad2 zi13" >
	                               				 ${yfAppointTask.rname}
		         		                       		  
	  </td>
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.completeDate" bundle="yfappointtask"/>：</td>
	   <td width="32%"  align="left" class="pad2 zi13">
	                               				<bean:write name="yfAppointTask" property="completeDate" format="yyyy-MM-dd"/>
		         		                       		  
	   </td>
        </tr>
        
         <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.taskContent" bundle="yfappointtask"/>：</td>
	              <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                             ${yfAppointTask.taskContent}
	         </td>
         </tr>
            <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">指派人：</td>
	              <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                             ${yfAppointTask.rname2}
	         </td>
         </tr>
      <c:if test="${yfAppointTask.auditStatus>2}">
        <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	${yfAppointTask.opinion}	                       		  
	         </td>
         </tr>
        </c:if>
        <c:if test="${yfAppointTask.auditStatus>4}">
          <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">执行结果：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	${yfAppointTask.exeResult}
		         		                       		  
	         </td>
         </tr>
         </c:if>
         <c:if test="${yfAppointTask.auditStatus>=6}">
        <tr class="bgcolor">
           <td width="18%" align="right" class="zi13">评价意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               ${yfAppointTask.remark}
		         		                       		  
	         </td>
	  
	  
         </tr>
         </c:if>
 
  <tr>
					    <td colspan="4">
		                    <iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${yfAppointTask.id}&type=10013&isShowAdd=N"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>       
					    </td>
					  </tr>		
    </table> 

		<p><p><p>
		   <!-- 已指派 -->
	 <c:if test="${yfAppointTask.auditStatus==2}">
		 <table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	           <tr>
		       <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">反馈意见</td>
		    </tr>
           <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	<textarea rows="6" cols="60"  id="opinion" name="opinion">${yfAppointTask.opinion}</textarea>		
		         		                       		  
	         </td>
	  
	  
         </tr>
    </table> 
    
      <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
      <input class="buttonbg" id="but_save2" type="submit" style="cursor:hand;" value="执行" onclick="return checkaction('agree')"  name="but_save2" />
						  &nbsp;&nbsp;&nbsp;
	                      <input class="buttonbg" id="but_save3" type="submit" style="cursor:hand;" value="不执行" onclick="return checkaction('disagree')"  name="but_save3" />
						  &nbsp;&nbsp;&nbsp;
   <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="<bean:message key='com.manager.common.yfappointtask.return' bundle="yfappointtask"/>" name="but_return" onClick="javascript:history.go(-1);"/>
    </td>
  </tr>
</table>

    </c:if>
    <!-- 正在执行时  -->
    <c:if test="${yfAppointTask.auditStatus==3}">
	<table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	           <tr>
		       <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">执行结果</td>
		    </tr>
           <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">执行结果：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                                	<textarea rows="6" cols="60"  id="exeResult" name="exeResult">${yfAppointTask.exeResult}</textarea>				                       		  
	         </td>
         </tr>
    </table> 
      <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
      <input class="buttonbg" id="but_save2" type="submit" style="cursor:hand;" value="提交" onclick="return checkaction('tijiao')"  name="but_save2" />
						  &nbsp;&nbsp;&nbsp;
   <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="<bean:message key='com.manager.common.yfappointtask.return' bundle="yfappointtask"/>" name="but_return" onClick="javascript:history.go(-1);"/>
    </td>
  </tr>
</table>
	</c:if>
	  
	  
	   <!-- 执行完成  -->
    <c:if test="${yfAppointTask.auditStatus>=4}">
	<table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	           <tr>
		       <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">评价意见</td>
		    </tr>
           <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">评价意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                                	<textarea rows="6" cols="60"  id="remark" name="remark">${yfAppointTask.remark}</textarea>				                       		  
	         </td>
         </tr>
    </table> 
      <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
       <input class="buttonbg" id="but_save2" type="submit" style="cursor:hand;" value="出色" onclick="return checkaction('pinjia','1')"  name="but_save2" />
						  &nbsp;&nbsp;&nbsp;
	    <input class="buttonbg" id="but_save3" type="submit" style="cursor:hand;" value="一般" onclick="return checkaction('pinjia','2')"  name="but_save3" />
						  &nbsp;&nbsp;&nbsp;
		 <input class="buttonbg" id="but_save2" type="submit" style="cursor:hand;"value=" 差 " onclick="return checkaction('pinjia','3')"  name="but_save2" />
						  &nbsp;&nbsp;&nbsp;
	     <input class="buttonbg" id="but_save3" type="submit" style="cursor:hand;" value="没执行" onclick="return checkaction('pinjia','4')"  name="but_save3" />
						  &nbsp;&nbsp;&nbsp;
   <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="<bean:message key='com.manager.common.yfappointtask.return' bundle="yfappointtask"/>" name="but_return" onClick="javascript:history.go(-1);"/>
    </td>
  </tr>
</table>
	</c:if>
	
	
	<html:hidden styleId="examineFlag" property="examineFlag" value="" />
	<html:hidden styleId="examineValue" property="examineValue" value="" />
	
			<html:hidden styleId="processId" property="processId" value="${yfAppointTask.processId}" />
			<html:hidden styleId="workItemId" property="workItemId" value="${yfAppointTask.workItemId}" />
</html:form>
</body>
</html>


<script>


//判断流程走向条件
function checkaction(mark,examineValue){
	document.all("examineFlag").value = mark;
	document.all("examineValue").value = examineValue;
	//alert(document.all("result").value);
}
function save(){
	if(validateForm(document.forms[0],'Y'))
	{
		return true;
		
	}else{
	    return false;
	}
}

</script>





